package dto;

public class Dice {
	protected int sides; // the dice have 6 sides
	protected int value;

	public Dice(int sides) {
		this.sides = sides;
	}

	public void generateDice() {
		value = (int) (Math.random() * sides) + 1;
	}

	public int getSides() {
		return sides;
	}

	public int getValue() {
		return value;
	}
}
